package com.tang.controlloer;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSON;
import com.tang.bean.TestBean;
import com.tang.service.TestService;

@Controller
@RequestMapping("/test")
public class TestController {
	
	@Autowired private TestService testService;
	@RequestMapping("/first")
	public String first(){
		List<TestBean> datas = testService.getTestData();
		System.out.println(JSON.toJSONString(datas));
		return "test";
	}
}
